<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // window.document.querySelector();
        var num=10;
        console.log(window.num);
        //所有的方法和函数都是window的方法和属性
        window.alert('11');
        console.log(window.name);
        //window的一个特殊属性为空
    </script>
</body>
</html>